﻿@model RTW.OA.Models.department
@{
    Layout = "~/Views/Shared/_LayoutBase.cshtml";
}

@section styles{

}
<div id="dMain">
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="ibox" style="margin-bottom: 0px;">
            <div class="ibox-title">
                <h4>@ViewBag.Title </h4>
            </div>
            <div class="ibox-content">
                @using (Html.BeginForm("Edit", "Dept", FormMethod.Post, new { area = "System", id = "deptfrom", name = "deptfrom" }))
                {
                    @Html.AntiForgeryToken()
                    @Html.HiddenFor(m => m.DEPT_ID)
                    <div class="from-content">
                        <dl>
                            <dt>部门名称</dt>
                            <dd>
                                @Html.DisplayFor(m => m.DEPT_NAME, new { htmlAttributes = new { @class = "input normal form-control", datatype = "*", nullmsg = " ", errormsg = " ", sucmsg = " " } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>电话</dt>
                            <dd>
                                @Html.DisplayFor(m => m.TEL_NO, new { htmlAttributes = new { @class = "input normal form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>传真</dt>
                            <dd>
                                @Html.DisplayFor(m => m.FAX_NO, new { htmlAttributes = new { @class = "input normal form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>部门地址</dt>
                            <dd>
                                @Html.DisplayFor(m => m.DEPT_ADDRESS, new { htmlAttributes = new { @class = "input normal form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>部门编号</dt>
                            <dd>
                                @Html.DisplayFor(m => m.DEPT_NO, new { htmlAttributes = new { Class = "input small form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>上级部门ID</dt>
                            <dd>
                                <div class="rule-single-select ">@Html.DropDownListFor(m => m.DEPT_PARENT, ViewBag.DEPT_PARENTData as List<SelectListItem>, new { @Class = "form-control", disabled=true })</div>
                            </dd>
                        </dl>
                        <dl>
                            <dt>部门主管</dt>
                            <dd>
                                @Html.DisplayFor(m => m.MANAGER, new { htmlAttributes = new { @class = "input normal form-control", datatype = "*", nullmsg = " ", errormsg = " ", sucmsg = " " } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>部门助理</dt>
                            <dd>
                                @Html.DisplayFor(m => m.ASSISTANT_ID, new { htmlAttributes = new { @class = "input normal form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>上级主管领导</dt>
                            <dd>
                                @Html.DisplayFor(m => m.LEADER1, new { htmlAttributes = new { @class = "input normal form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>上级分管领导</dt>
                            <dd>
                                @Html.DisplayFor(m => m.LEADER2, new { htmlAttributes = new { @class = "input normal form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>部门职能</dt>
                            <dd>
                                @Html.DisplayFor(m => m.DEPT_FUNC, new { @class = "input normal form-control" })
                            </dd>
                        </dl>
                        <dl>
                            <dt>是否是分支机构</dt>
                            <dd>
                                <div class="rule-single-checkbox  "> @Html.CheckBoxFor(m => m.IS_ORG, new { @class = "form-control ", disabled = true }) </div>
                            </dd>
                        </dl>
                        <dl>
                            <dt>机构管理员</dt>
                            <dd>
                                @Html.DisplayFor(m => m.ORG_ADMIN, new { htmlAttributes = new { @class = "input normal form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>保密邮件审核人</dt>
                            <dd>
                                @Html.DisplayFor(m => m.DEPT_EMAIL_AUDITS_IDS, new { htmlAttributes = new { @class = "input normal form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>是否全局部门</dt>
                            <dd>
                                <div class="rule-single-checkbox  "> @Html.CheckBoxFor(m => m.G_DEPT, new { @class = "form-control ", disabled = true }) </div>
                            </dd>
                        </dl>
                        <dl>
                            <dt>状态</dt>
                            <dd>
                                <div class="rule-single-checkbox  "> @Html.CheckBoxFor(m => m.STATUS, new { @class = "form-control ", disabled = true }) </div>
                            </dd>
                        </dl>
                        <dl>
                            <dt>层级</dt>
                            <dd>
                                @Html.DisplayFor(m => m.LEVEL, new { htmlAttributes = new { Class = "input small form-control", datatype = "n", nullmsg = " ", errormsg = " ", sucmsg = " " } })
                            </dd>
                        </dl>

                    </div>
                    <div class="from-footer">
                        <div class="btn-wrap" style="position: fixed;" >
                            <a class="btn btn-sm btn-warning radius" onclick="parent.subcloseTab('5803')">
                                <i class="iconfont icon-fanhui"></i>
                                取消关闭
                            </a>
                        </div>
                    </div>
                }
            </div>
        </div>
    </div>
</div>
@section scripts{
    <script src="@Url.Content("~/Content/JS/common/WdatePicker/WdatePicker.js")"></script>
    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/JS/common/jquery/Validform_v5.3.2_min.js")"></script>
    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/JS/common/artdialog/dialog-plus-min.js")"></script>
    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/JS/common/webuploader/webuploader.min.js")"></script>
    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/editor/ueditor.config.js")"></script>
    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/editor/ueditor.all.min.js")"></script>
    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/editor/lang/zh-cn/zh-cn.js")"></script>
    @*<script type="text/javascript" charset="utf-8" src="../js/uploader.js"></script>*@

    <script src="@Url.Content("~/Content/JS/common/from.js")"></script>
    <script>
        $(function () {
            //初始化表单验证
            $("#deptfrom").initValidform();

        });

    </script>

}

